package com.exp.bookhouse.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.exp.bookhouse.pojo.Category;

import java.util.List;

public interface CategoryService {

    //保存分类信息
    int saveCategory(Category category);

    //查询所有分类
    List<Category> queryAllCategory();

    //分页查询分类
    IPage<Category> queryCategoryByPage(Integer page, Integer size);

    //根据id查询分类
    Category queryCategoryById(Long id);

    //更新分类
    int updateCategory(Category category);

    //根据id删除分离
    void deleteCategory(Long id);
}
